/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.q3and4.liskovsubstitutionprinciple.model.obey;

/**
 *
 * @author user
 */
public class Rectangle1 {
    
    protected int width;
    protected int height;

    public Rectangle1(){}
    
    public Rectangle1(int h,int w)
    {
        width = w;
        height = h;
    }
    /**
     * @return the width
     */
    public int getWidth() {
        return width;
    }

    /**
     * @param width the width to set
     */
    public void setWidth(int width) {
        this.width = width;
    }

    /**
     * @return the height
     */
    public int getHeight() {
        return height;
    }

    /**
     * @param height the height to set
     */
    public void setHeight(int height) {
        this.height = height;
    }
    public int getArea(){
    
        return width * height;
    }
    
}
